#include "process.h"


void ProcessOn(void)
{
    char bar[NUM];
    memset(bar,'\0',sizeof(bar));
    const char* buffer="|\\-/";
    int i=0;
    while(i<=100)
    {
        printf("[%-100s][%d%%][%c]\r",bar,i,buffer[i%4]);
        bar[i]='#';
        usleep(50000);
        fflush(stdout);
        i++;
    }

    
}
